package com.xinxin.base.service;

import com.xinxin.base.entity.Claim;
import com.xinxin.base.enums.TokenTypeEnum;

/**
 * @author ys
 * @date 2021/5/21
 */
public interface ITokenService {

    String signature(String payload, String secret);

    String generateToken(TokenTypeEnum type, Long accountId, String secret);

    Claim validClaim(TokenTypeEnum type, String token);
}
